package com.ld.control.business.record.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ld.control.business.record.model.MessageNoticeRecordModel;
import com.ld.control.business.record.vo.req.ReadAlreadyReqVo;
import com.ld.control.business.record.vo.resp.MessageNoticeRecordRespVo;
import com.ld.control.business.record.vo.resp.NoticeTipRespVo;
import com.ld.control.common.vo.GeneratePageListVo;

/**
 * <p>
 * 任务报错后的记录和处理 服务类
 * </p>
 *
 * @author wangfeng
 * @since 2024-07-15
 */
public interface MessageNoticeRecordService extends IService<MessageNoticeRecordModel> {


    /**
     * 添加通知消息
     * @param msgInfo
     */
    void add(String msgInfo);

    /**
     * 分页查询消息
     * @param current
     * @param size
     * @return
     */
    GeneratePageListVo<MessageNoticeRecordRespVo> getPageList(Integer status, Integer type, Integer current, Integer size);

    /**
     * 已读接口
     * @param reqVo
     */
    void readAlready(ReadAlreadyReqVo reqVo);

    /**
     * 铃铛信息获取
     * @return
     */
    NoticeTipRespVo getNoticeTipInfo();

    /**
     * 获取未读的消息
     * @return
     */
    Integer getNoticeTipCount();

}
